package BehavioralPattern.Command;

/**
 * @Classname : Invoker
 * @Description : 调用者
 * @Author : chentianyu
 * @Date 2023/3/7 08:06
 */


public class Invoker {
    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    // 执行命令
    public void action() {
        this.command.execute();
    }
}
